const model = require('../model/userModel')

class UserService {

  create(req) {
    let data = { id: Date.now(), ...req.body }
    model.create(data)
    return data
  }
}

module.exports = new UserService()
